//
//  HQDate.h
//  CommonKit
//
//  Created by guohongqi on 2021/7/8.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HQDate : NSDate

#pragma mark - 获取当前时间戳
+ (NSTimeInterval)getCurrentTimestamp;
+ (NSTimeInterval)getCurrentMsecTimestamp;

#pragma mark - 时间戳转Date
+ (NSDate *)getDateFromTimeIntervalString:(NSString*)timeStr;
+ (NSDate *)getDateFromTimeInterval:(long)timeStr;

#pragma mark - Date转时间字符串
+ (NSString *)getTimeWithFormatter:(NSString *)formatter date:(NSDate *)date;

#pragma mark - 获取当前时间
+ (NSString *)getCurrentDate;
+ (NSString *)getCurrentTime;

#pragma mark - 从时间戳转换日期字符串
+ (NSString *)dateTransformFromTimestamp:(long)timestamp formater:(NSString *)formaterStr;


@end

NS_ASSUME_NONNULL_END
